package com.huaxin.entity;

import org.springframework.stereotype.Repository;

/**
 * 用户实体
 */
//@Repository
public class User {
    private Integer id;

    private String username;

    private String password;

    private String realname;

    private String sex;

    private String address;

    private String question;

    private String answer;

    private String email;
//  用户的爱好
    private String favorate;
//  用户等级,初始值10,越大等级越高
    private Integer score;
//  注册时间
    private String regdate;
//  用户状态,1登录，2未登录
    private Integer status;

    public User(Integer id, String username, String password, String realname, String sex, String address, String question, String answer, String email, String favorate, Integer score, String regdate, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.realname = realname;
        this.sex = sex;
        this.address = address;
        this.question = question;
        this.answer = answer;
        this.email = email;
        this.favorate = favorate;
        this.score = score;
        this.regdate = regdate;
        this.status = status;
    }

    public User() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname == null ? null : realname.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question == null ? null : question.trim();
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer == null ? null : answer.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getFavorate() {
        return favorate;
    }

    public void setFavorate(String favorate) {
        this.favorate = favorate == null ? null : favorate.trim();
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getRegdate() {
        return regdate;
    }

    public void setRegdate(String regdate) {
        this.regdate = regdate == null ? null : regdate.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}